import http from '@/utils/requestDriver'

// 司机端接口
export const driverManagerApi = {
	//查询行程列表
	getSelectTripList() {
		return http.get('/api/front/hitch/driverManager/selectTripList')
	},

	//添加行程
	addTrip(data) {
		return http.post('/api/front/hitch/driverManager/addTrip', data)
	},

	//查询行程详情
	selectTrip(id) {
		return http.get('/api/front/hitch/driverManager/selectTrip?id=' + id)
	},

	//匹配行程订单
	matchTrip(obj) {
		return http.post('/api/front/hitch/driverManager/matchTrip', obj)
	},

	//匹配行程单详情
	matchTripOrder(id) {
		return http.get('/api/front/hitch/driverManager/matchTripOrder?id=' + id)
	},
	
	//抢单
	grabOrder(data) {
		return http.post('/api/front/hitch/driverManager/grabOrder',data)
	},
	
	//行程单修改状态
	updateTripStatus(data) {
		return http.post('/api/front/hitch/driverManager/updateTripStatus',data)
	}
}